﻿<Page x:Class="Framework_Tool.LearnerAssessmentProfile"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      mc:Ignorable="d" 
      d:DesignHeight="547" d:DesignWidth="1042"
	Title="LearnerAssessmentProfile">

    <Grid Name="mainContent" Loaded="mainContent_Loaded_1">
        <Border BorderBrush="#FF311E51" BorderThickness="3" CornerRadius="30" Width="1042" Height="547" VerticalAlignment="Top" HorizontalAlignment="Left">
            <Grid>
                <Border Name="mask" CornerRadius="27" >
                    <Border.Background>
                        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                            <GradientStop Color="#FF311E51" Offset="0"/>
                            <GradientStop Color="#FF594F6B" Offset="1"/>
                        </LinearGradientBrush>
                    </Border.Background>
                </Border>
                <StackPanel HorizontalAlignment="Left" Orientation="Horizontal" Margin="30,0,0,0" VerticalAlignment="Top" Width="874">
                    <Button Margin="0,0,25,0" x:Name="takeAsmntBtn" Content="Take Assessment" Foreground="White" FontSize="20" Background="{x:Null}" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="takeAsmntBtn_Click_1" />
                    <Button Margin="0,0,25,0" x:Name="AsmntProfileBtn" Content="Assessment Profile" Foreground="White" FontSize="20" Background="{x:Null}" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" />
                    <Button Margin="0,0,25,0" x:Name="searchAsmntBtn" Content="Search" Foreground="White" FontSize="20" Background="{x:Null}" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="searchAsmntBtn_Click_1" />
                </StackPanel>
                <Label x:Name="asmntProfileTxt" Content="Assessment Profile" Margin="70,65,0,0" Foreground="White" VerticalAlignment="Top" HorizontalAlignment="Left" FontSize="20" RenderTransformOrigin="-0.551,0.513" FontWeight="Bold" />
                <ListView ItemsSource="{Binding}" x:Name="displayAsmntProfileLstvw" Margin="70,119,0,0" Height="300" Width="920" HorizontalAlignment="Left" VerticalAlignment="Top">
                    <ListView.ItemContainerStyle>
                        <Style TargetType="ListViewItem">
                            <Setter Property="Height" Value="35" />
                        </Style>
                    </ListView.ItemContainerStyle>
                    <ListView.View>
                        <GridView x:Name="gridView">
                            <GridViewColumn Header="Assessment ID" DisplayMemberBinding="{Binding Path=assessmentID}" />
                            <GridViewColumn Header="Title" DisplayMemberBinding="{Binding Path=assessmentTitle}" Width="200"/>
                            <GridViewColumn Header="Unit Title" DisplayMemberBinding="{Binding Path=unitTitle}" />
                            <GridViewColumn Header="Result (%)" DisplayMemberBinding="{Binding Path=result}" Width="100" />
                            <GridViewColumn Header="Date Taken" DisplayMemberBinding="{Binding Path=dateTaken}" />
                        </GridView>
                    </ListView.View>
                </ListView>
            </Grid>
        </Border>
    </Grid>
</Page>
